home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Bootstrap / setup.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  1.7 KB  |  42 lines

  1. ##########################################################################
  2. ## SETUP.TG
  3. # this autorun script is run automatically when WinCron is started. 
  4. # Auto loading scripts load in the following order:
  5. # Config.tg, (AutoRun.tg), (setup.tg), user.tg
  6. # Config.tg: This file unconditionally starts on WinCron boot
  7. # AutoRun.tg: This script will start IF WinCron is started as a service 
  8. # setup.tg: This script (if it exists) will run to finish-up WinCron installation  
  9. # user.tg: This is the user script and never over written by WinCron setup
  10.  
  11. {
  12.     -name SETUP.TG
  13.     -start
  14.     -action -print Completing WinCron installation...
  15.     
  16.     ##################################################
  17.     ## 3.1 change
  18.     # In version 3.1, we determined we didn't need copies of config.tg and 
  19.     # autorun.{tg,tab} in the Scripts directory. In the unlikely event the user has 
  20.     # made modifications, we move these files to the Samples directory. 
  21.     # It should be noted however, that these files can be replaced 
  22.     # during the next WinCron upgrade.
  23.  
  24.     -action -set TG.LAST_ERROR="File moved Okay."
  25.     -action -move "%TG.SCRIPT_DIR%config.tg" "%TG.SAMPLE_SCRIPT_DIR%config.tg"
  26.     -action -print Setup::%TG.LAST_ERROR%
  27.  
  28.     -action -set TG.LAST_ERROR="File moved Okay."
  29.     -action -move "%TG.SCRIPT_DIR%autorun.tg" "%TG.SAMPLE_SCRIPT_DIR%autorun.tg"
  30.     -action -print Setup::%TG.LAST_ERROR%
  31.  
  32.     -action -set TG.LAST_ERROR="File moved Okay."
  33.     -action -move "%TG.SCRIPT_DIR%autorun.tab" "%TG.SAMPLE_SCRIPT_DIR%autorun.tab"
  34.     -action -print Setup::%TG.LAST_ERROR%
  35.  
  36.     ## 3.1 change complete
  37.     ##################################################
  38.  
  39.     -action -print WinCron installation complete.
  40.     -stop
  41. }
  42.